﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InmobiliariaNegocio;

namespace InmobiliariaIntefaz
{
    public partial class frmAdmin : Form
    {
        private Inmobiliaria inmobiliaria;

        public frmAdmin(Inmobiliaria inmob)
        {
            InitializeComponent();

            inmobiliaria = inmob;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            inmobiliaria.eliminarreservas();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            inmobiliaria.eliminaralquileres();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            inmobiliaria.eliminarventas();
        }
    }
}
